<?php

namespace App\Console\Commands\Fee;

use App\Console\Commands\Traits\ExcelCommand;
use App\Console\Commands\Traits\ExcelCommandTrait;
use App\Service\Fee\Import\ImportSpecialAnnualFeeOrderTime;
use Illuminate\Console\Command;

class ImportSpecialShopAnnualFeeTime extends Command
{
    use ExcelCommandTrait;

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'fee:import-special-shop-annual-fee-time';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '更新每年的管理费截止时间';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        $url = 'https://file.51kuafu.com/e1/be/66e9925b709428d41ff3610504f235888e8a33e91f4f48e40d908abdfa52.xlsx';

        $this->excelImport(ImportSpecialAnnualFeeOrderTime::class, $url);
    }
}
